package com.manager.car.dao;

import java.util.List;

import com.manager.car.po.DemandInfo;


public class DemandInfoImpl extends BaseDao<DemandInfo> implements IDemandInfoDao{
    //根据Id查询
	public DemandInfo queryId(Integer id) {
		return this.getHibernateTemplate().get(DemandInfo.class, id);
	}
    //查询全部
	public List<DemandInfo> queryAll() {
			return (List<DemandInfo>) this.getHibernateTemplate().find("from DemandInfo d left join fetch d.departId");
	}
	
   
}
